package com.example.win.android_banduyujia.peopleactivity.activity.activity.payactivtiy;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

/**
 * Created by Win on 2015/9/2.
 */
public class WithdrawActivity extends BaseTitleBarActivity implements View.OnClickListener {

   public TextView  mTxtshift_out,mTxtshift_to;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_withdraw_page);

        InitTitles();
        InitViews();
    }

    private void InitTitles() {
        showLeftBackButton();
        setTitle(R.string.text_view_withdraw);
        setRightTextViewListener(R.string.text_view_withdraw_instructions, mRightListener);
    }

    public View.OnClickListener mRightListener = new View.OnClickListener(){

        @Override
        public void onClick(View v) {
            withdraw();
        }
    };

    private void withdraw() {

    }

    private void InitViews() {
         mTxtshift_out = (TextView) findViewById(R.id.text_view_shift_out);
         mTxtshift_to = (TextView) findViewById(R.id.text_view_shift_to);

         mTxtshift_out.setOnClickListener(this);
         mTxtshift_to.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
         switch (v.getId()){
             case R.id.text_view_shift_out:
                 shiftoutActivity();
                 break;
             case R.id.text_view_shift_to:
                 shifttoActivity();
                 break;
         }
    }

    private void shiftoutActivity() {
         startActivity(new Intent(this, ShiftoutActivity.class));
    }

    private void shifttoActivity() {
        startActivity(new Intent(this, ShifttoActivity.class));
    }
}
